package com.youxin.busfoundation.enums;


/**
 * @ClassName: SourceTypeEnums 
 * @Description: 来源 
 * @author yingde.cao
 * @date 2017年12月23日 下午3:34:16 
 *
 */
public enum SourceTypeEnums {
	Unknown(0,"其它"),
	Web(1,"网站"),
	H5(2,"H5"),
	;
	
	public int getValue() {
		return value;
	}
	
	private int value;
	private String name;
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setValue(int value) {
		this.value = value;
	}

	private SourceTypeEnums(int value,String name) {
		this.value = value;
		this.name=name;
	}
	
	public static SourceTypeEnums valueOf(int val)
	{			
		for(SourceTypeEnums m : SourceTypeEnums.values()) 
		{
			if(val==m.getValue())
				return m;
	    }
		return null;
	}
}
